package com.tgky.ybzb.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * 系统用户
 *
 * @author XYP
 * @since 2024-07-22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysUser对象", description="系统用户")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    @ApiModelProperty(value = "用户名", position = 1)
    private String username;

    @ApiModelProperty(value = "真实名称", position = 2)
    private String realName;

    @ApiModelProperty(value = "密码", position = 3)
    private String password;

    @ApiModelProperty(value = "邮箱", position = 4)
    private String email;

    @ApiModelProperty(value = "手机号", position = 5)
    private String mobile;

    @ApiModelProperty(value = "状态  0：禁用   1：正常", position = 6)
    private Integer userStatus;

    @ApiModelProperty(value = "用户单位  ", position = 7)
    private String userUnits;

    @ApiModelProperty(value = "创建时间", position = 8)
    private LocalDateTime createTime;

}
